import http from '@/utils/http'

const NewKeyPerson = {

  /**
   * 争议单模块
   * @param {*} params
   * @returns
   */
  // 初始化下拉框列表
  async initValue(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getBasicsdata`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  // 争议单列表
  async getDisputeList(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getDisputeList`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  // 争议单处理历史或者修改详情
  async getDisputeListHistory(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getDisputeListHistory`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  // 获取登录人电话号码
  async getStaffPhone(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getStaffPhone`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  // 争议单新增或修改
  async dealDispute(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/dealDispute`,
      data: params,
      method: 'POST'
    })
    return result;
  },
  // 证件照片回显
  async getCustPhoto(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getCustPhoto`,
      params: params,
      headers: {'Content-Type': 'application/json'},
      method: 'get'
    })
    return result;
  },
}
export default NewKeyPerson
